const path = require('path')
const TerserPlugin = require('terser-webpack-plugin')

process.env.GENERATE_SOURCEMAP = false

module.exports = {
    webpack: {
        alias: {
          "@": path.resolve(__dirname, 'src'),
          'components': path.resolve(__dirname, 'src/components')
        },
        plugins: [
          new TerserPlugin({
            terserOptions: {
              compress:{
                drop_console:process.env.NODE_ENV==='production'
              }
            }
          })
        ]
    }
}
